package com.project.webpage.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.project.webpage.dto.YhxxParam;
import com.project.webpage.entity.Yhxx;
import com.project.webpage.mapper.YhxxMapper;
import com.project.webpage.service.YhxxService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class YhxxServiceImpl implements YhxxService {

    @Resource
    private YhxxMapper yhxxMapper;

    @Override
    @DS("master")
    public List<Yhxx> getList(YhxxParam param) {
        return yhxxMapper.selectListByUid(param);
    }
}
